﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Billing.WindowsBase;

namespace Billing.Reports
{
    public partial class ReportBrowserForm : FormBase
    {
        public ReportBrowserForm()
            : base(false)
        {
            InitializeComponent();

        }

        private void tsbRefresh_Click(object sender, EventArgs e)
        {
            this.WB.Refresh();
        }

        private void tsbBack_Click(object sender, EventArgs e)
        {
            this.WB.GoBack();
        }

        private void tsbForward_Click(object sender, EventArgs e)
        {
            this.WB.GoForward();
        }

        private void tsbHome_Click(object sender, EventArgs e)
        {
            this.WB.GoHome();
        }

        private void ReportBrowserForm_Load(object sender, EventArgs e)
        {
            this.WB.Url = new Uri(Billing.SettingManager.getSetting("DefaultReportsPath"));
        }

        private void tsbStop_Click(object sender, EventArgs e)
        {
            this.WB.Stop();
        }
    }
}
